from likeShop_Pro.base.myBase import Tools
from likeShop_Pro.API.login import login_model

class Token(Tools):

    def make_header(self):
        res = login_model(self.huihua)
        msg = res.send(tel=18955551234,pwd='admin123.',client=2)
        return {'token':msg['data']['token']}

if __name__ == '__main__':
    import requests
    huihua = requests.session()
    r = Token(huihua=huihua)
    print(r.make_header())

